<?php
	/*
	** File: configuration
	** Description: Sets a bunch of global variables
	** Version: 1.0
	** Created: 01/04/2000
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	*/

	/*
	** General Network Behavior
	*/

	//when emails are sent by the system this is used
	//in the from header.
	define("EMAIL_FROM", "Webmaster <webmaster@$SERVER_NAME>");

	//This constant controls generation of cloaking constants
	define('GENERATE_CLOAKING_CONSTANTS', TRUE);

	//How many seconds to allow an action module to run.
	define("ACTION_TIME_LIMIT", 3600);
	
	//How long to allow a screen module to run
	define("DEFAULT_TIME_LIMIT", 60);
	
	//
	if(SERVER_NAME == "benchwatches.tabernus.eu")
	{
		define("WEB_DOMAIN", "benchwatches.co.uk");
		define("DOMAIN_NAME", "benchwatches");
	}else{
		define("WEB_DOMAIN", eregi_replace("www.", "", SERVER_NAME));
		//define("DOMAIN_NAME", eregi_replace(".com", "", WEB_DOMAIN));
		define("DOMAIN_NAME", eregi_replace(".co.uk", "", WEB_DOMAIN));
	}
	//Email address for orders
	//echo "<!-- orders@".WEB_DOMAIN."-->";
	define("EMAIL_ORDER", "orders@".WEB_DOMAIN);
	define("SITE_NAME",WEB_DOMAIN."");
	/** ***************************************************
	* Classes
	*************************************************** */

	/**
	* PHP will call includeClass (in standard_library) when
	* it unserializes a class it doesn't recognize.
	*/
	ini_set('unserialize_callback_func', 'includeClass');		

	function __autoload($strClass)
	{
		includeClass($strClass);
	}
?>
